<%
    require '/var/www/html/aboutyou-ruby-sdk/AboutYou-SDK/lib/aboutyou-sdk.rb'

    ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')

    criteria = ay.product_search_criteria;

    criteria.filter_by_category_ids([74417])
    criteria.select_product_fields([
        AboutYou::SDK::Criteria::ProductFields::CATEGORIES,
    ])

    productResult = ay.fetch_product_search(criteria)
    products = productResult.products

    products.each do |key, product|
%>
        <%= product.name + ' (' + product.category.name + ')' %>
<%
    end
%>